﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace PotentialRentals.Models
{
    public class User
    {
        public int UserId { get; set; }

        [Required]
        [StringLength(50)]
        public string UserName { get; set; }

        public virtual ICollection<Rental> Rentals { get; set; }

        public User()
        {
            Rentals = new List<Rental>();
        }
    }
}